package org.ghost.wechat.platform.dto.wechat.message;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author 01
 */
@XmlRootElement(name = "xml")
public class ImageMsgXmlDTO extends CommonMsgXmlDTO {
    private static final long serialVersionUID = 305875284116281478L;

    /**
     * 图片消息媒体id，可以调用获取临时素材接口拉取数据
     */
    @XmlElement(name = "MediaId")
    private String mediaId;
    /**
     * 图片链接（由系统生成）
     */
    @XmlElement(name = "PicUrl")
    private String picUrl;

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    @Override
    public String toString() {
        return "ImageMsgXmlDTO{" +
                "picUrl='" + picUrl + '\'' +
                ", msgId='" + msgId + '\'' +
                ", toUserName='" + toUserName + '\'' +
                ", fromUserName='" + fromUserName + '\'' +
                ", createTime=" + createTime +
                ", msgType='" + msgType + '\'' +
                '}';
    }
}
